package org.dlust;

import cn.itcast.pojo.Country;
import cn.itcast.pojo.Province;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

@SpringBootApplication
//@Import(CommonImportSelector.class)
public class QuickApplication {
  public static void main(String[] args) {
    ConfigurableApplicationContext ctx = SpringApplication.run(QuickApplication.class, args);
//    System.out.println(ctx.getBean(Country.class));
    System.out.println(ctx.getBean(Province.class));
  }

//  @Bean
//  public Country country() {
//    return new Country();
//  }
}
